package com.dlnu.sujiwords.dao;

import com.dlnu.sujiwords.domain.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /*创建用户*/
    int createUser(User user);
    /*按电话查询*/
    User selectByPhoneNumber(String phoNum);
    /*创建普通用户*/
    int createNomerUser(User newNomer);
    /*升级用户*/
    User upUser(String phoNum);
    /*注销用户*/
    int deleteUserById(Integer id);
    /*修改信息*/
    int updateUser(User updUser);
    /*全部查询*/
    List<User> selectAll();
    /*在线用户查询*/
    List<User> selectOnline();
    /*获取用户主要学习词本*/
    int getLearnVocabularyByPhoneNumber(String phoneNumber);
    /*改变用户词本*/
    int updateUserLearnVocabulary(@Param("phoneNumber")String phoneNumber,@Param("Learn_vocabulary")Integer Learn_vocabulary);
}
